import request from '@/static/js/utils/request'
import upload from '@/static/js/utils/upload'
import { envConfig } from '@/static/js/env/env'
const { baseUrl } = envConfig

// 上传文件
export function uploadFile(data) {
    return upload({
        url: `${baseUrl}/api/front/user/upload/image`,
        ...data
    })
}

// 发送验证码
export function sendCode(data) {
    return request.post({
        url: `${baseUrl}/api/front/sendCodeByPhone`,
        data
    })
}

// 意见反馈
export function opinion(data) {
    return request.post({
        url: `${baseUrl}/api/front/feedback/submit`,
        data
    })
}
